home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / demos / VisualAge for Java 2.0 Entry / setup / data1.cab / ide-e / IDE / cache / 5FT3GJ (.txt) < prev    next >
Encoding:
Java Class File  |  1998-09-16  |  1.2 KB  |  25 lines

  1. package com.sun.java.swing.plaf.basic;
  2.  
  3. import java.awt.event.ItemEvent;
  4. import java.awt.event.ItemListener;
  5.  
  6. class BasicComboPopup$ComboItemListener implements ItemListener {
  7.    // $FF: synthetic field
  8.    BasicComboPopup this$0;
  9.  
  10.    public void itemStateChanged(ItemEvent e) {
  11.       if (e.getStateChange() == 1) {
  12.          this.this$0.valueIsAdjusting = true;
  13.          this.this$0.list.setSelectedIndex(this.this$0.comboBox.getSelectedIndex());
  14.          this.this$0.valueIsAdjusting = false;
  15.          this.this$0.list.ensureIndexIsVisible(this.this$0.comboBox.getSelectedIndex());
  16.       }
  17.  
  18.    }
  19.  
  20.    // $FF: synthetic method
  21.    BasicComboPopup$ComboItemListener(BasicComboPopup this$0) {
  22.       this.this$0 = this$0;
  23.    }
  24. }
  25.